/* eslint-disable no-useless-escape */
class CreateDom {
    // 获取根卡片  模型组名
    static getModelRootDom(modelInfo) {
        return `
        <div>煤矿</div>
        `;
    }
    // 获取子级卡片  模型名/标签
    static getModelCardDom(modelInfo) {
        return `
        <div class="${modelInfo.isHighLight}">
            <div class="model-info">
                <p class="model-title-p">
                <span class="hover">${modelInfo.modelTitle}</span>
                ${modelInfo.elmenu}
                </p> 
                 <div class="model-name-info">
                    <div>
                    <p class="p">分站</p>
                    <p class="hover">${modelInfo.stationInfoNum}</p>
                    </div>
                       <div>
                    <p class="p">相邻区域</p>
                    <p class="hover">${modelInfo.nearAreaInfoNum}</p>
                    </div>
                       <div>
                    <p class="p">人员信息</p>
                    <p class="hover">${modelInfo.personalInfoNum}</p>
                    </div>
                 </div>
            </div>
            <div class="model-name-info" v-show="showMenu">
                    <div class="btn">
                    <el-button @click="addBrother()">新增</el-button>
                    </div>
                       <div class="btn">
                   <el-button @click="editChild()">编辑</el-button>
                    </div>
                       <div class="btn">
                  <el-button @click="delCard()">删除</el-button>
                    </div>
                </div>
        </div>
        `;
    }

    // 生成自定义右键菜单
    static getContextMenu() {
        return `
            <el-menu
                class="context-menu"
                v-show="showMenu"
                :style="{
                left: menuStyle.left,
                top: menuStyle.top,
                bottom: menuStyle.bottom,
                right: menuStyle.right
                }"
                ref="context">
                <slot>
                    <el-menu-item @click="addBrother">插入平级</el-menu-item>
                    <el-menu-item @click="addChild">插入子级</el-menu-item>
                    <el-menu-item @click="delCard">删除卡片</el-menu-item>
                </slot>
            </el-menu>
        `;
    }


    // 获取固定的初始化数据
    static getInitData(params) {
        return params
    }
}

export default CreateDom;